package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 * 获取文件完整路径请求信息
 * 
 * @author liulx
 * @create 2021-01-29 14:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "获取文件完整路径请求信息", description = "根据文件 OSS 短路径地址获取文件完整路径请求信息")
public class GetOssUrlReq extends BaseReqObj {

    private static final long serialVersionUID = 700908576280674733L;

    /**
     * 地址短路径 URL
     */
    @ApiModelProperty(value = "短路径地址(包含 Bucket) \n  如：zhongtai/file.pdf",
        notes = "短路径地址(包含 Bucket) \n  如：zhongtai/file.pdf", required = true, dataType = "String")
    @NotBlank(message = "地址短路径 URL 不能为空")
    private String shortUrl;

}
